package  com.pcbly.web.business.publicinfo;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.publicinfo.SuggestBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface SuggestService extends BaseService<SuggestBean> {

	SuggestBean getSuggestBeanById(String id) throws Exception;
	
	void removeSuggestBeanById(String id) throws Exception;
	
	void removeSuggestBeanByIds(String ids) throws Exception;
	
	SuggestBean saveSuggestBean(SuggestBean publicinfo) throws Exception;
	
	SuggestBean updateSuggestBean(SuggestBean publicinfo) throws Exception;
	
	Page<SuggestBean>  findSuggestBeanByCond(SuggestBean bean,
			Page<SuggestBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveSuggestBeanExt(String sql) throws Exception;

	String findSuggestBeanExtCreate(String tableName) throws Exception;

	String findSuggestBeanExtEdit(String tableName, String id)
			throws Exception;

	String findSuggestBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasSuggestBeanExtData(String tableName, String id)
			throws Exception;
}